package com.example.woke1;

import android.app.AlertDialog;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.FrameLayout;

import com.example.woke.CaixintonglistActivity;
import com.woke.fragment.CxtongFragment;
import com.zhongcai.online.R;

public class CaixintongActivity extends FragmentActivity {

	private FrameLayout mFrala;
	private AlertDialog alertDialog;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_caixintong);
		
		intview();
		
	}
	
	
//	@Override
//	protected void onResume() {
//		// TODO Auto-generated method stub
//		super.onResume();
//		MyApp application = (MyApp) getApplication();
//		if(application.getDatas_load().pay_pwd == null || application.getDatas_load().pay_pwd.equals("")){
//			aralogid("��δ����֧������","ǰ�����ã�",1);
//		}
//	}

	private void intview() {
		findViewById(R.id.avcxtong_image_back).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				finish();
			}
		});
		
		findViewById(R.id.avcxtong_minxi).setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(CaixintongActivity.this,CaixintonglistActivity.class);
				startActivity(intent);
			}
		});
		
		mFrala = (FrameLayout) findViewById(R.id.avcxtong_framelayout);
		initMainFragment();
	}
	
	private void initMainFragment(){
			FragmentManager fm = getSupportFragmentManager();
	        FragmentTransaction ft = fm.beginTransaction();
	        ft.add(R.id.avcxtong_framelayout, new CxtongFragment());
	        ft.commit();
    }
}
